#include "CarSoloNavMeshInterface.h"
#include "CarDebug.h"
#include "CarSoloMeshBuilder.h"

EXPORT_API void SetBuildConfig(CarBuildConfig carBuildConfig)
{
	CarSoloMeshBuilder::instance.SetBuildConfig(&carBuildConfig);
}

EXPORT_API void SetMeshData(float* vertexBuffer, int vertexCount, int* triangleBuffer, int triangleCount)
{
	CarSoloMeshBuilder::instance.SetMeshData(vertexBuffer, vertexCount, triangleBuffer, triangleCount);
}

EXPORT_API void BuildSoloNavMesh()
{
	CarSoloMeshBuilder::instance.Build();
}

EXPORT_API void Cleanup()
{
	CarSoloMeshBuilder::instance.Cleanup();
}
